package cn.duyo.spring.context;

import cn.duyo.spring.beans.BeansException;
import cn.duyo.spring.beans.factory.Aware;

/**
 * 上下文感知接口
 * tips: 能感知到所属的 ApplicationContext。这和 BeanFactoryAware 类似
 *
 * @author du
 */
public interface ApplicationContextAware extends Aware {

    void setApplicationContext(ApplicationContext applicationContext) throws BeansException;
}